Chris Pollett > Old Classes >
CS134

( Print View )

Student Corner:
  [Grades Sec1]
  [Grades Sec2]

  [Submit Sec1]
  [Submit Sec2]

  [Email List Sec1]
  [Email List Sec2]

  [
Lecture Notes]

Course Info:
  [Texts & Links]
  [Topics]
  [Grading]
  [HW Info]
  [Exam Info]
  [Regrades]
  [Honesty]
  [Announcements]

HW Assignments:
  [Hw1]  [Hw2]  [Hw3]
  [Hw4]  [Hw5]

Practice Exams:
  [Mid1]  [Mid2]  [Final]

                           












CS134 Fall 2004Practice Midterm 1

[Student generated solutions]

To study for the midterm I would suggest you: (1) Know how to do (by heart) all the practice problems. (2) Go over your notes three times. Second and third time try to see how huch you can remember from the first time. (3) Go over the homework problems. (4) Try to create your own problems similar to the ones I have given and solve them. (5) Skim the relevant sections from the book. (6) If you want to study in groups, at this point you are ready to quiz each other. The practice midterm is below. Here are some facts about the actual midterm: (a) The midterm will be in class . (b) It is closed book, closed notes. Nothing will be permitted on your desk except your pen (pencil) and test. (c) You should bring photo ID. (d) There will be more than one version of the test. Each version will be of comparable difficulty. (e) If your cell-phone or beeper goes off you will be excused from the test at that point and graded on what you have done till your excusal. (f) One problem (less typos) on the actual test will be from the practice test.

1. In your code for the Gauntlet game of Hw1, explain how you initialized the rival players and restricted their position to either side of the screen.

2. Explain and then give examples of the three kinds of dimensionality of motion we considered for computer games.

3. Briefly explain what a use case diagram is, then give an example connected to the game you intend to make for the end of the semester.

4. Give a UML diagram showing how the following classes are related: CPopDoc, cGame, cCritter, cCritterArmed, cCritterStubPlayer, cCritterStubRival.

5. Give methodology for going from a requirement description to a set of classes with member functions that we discussed. Give an example.

6. Give the UML diagrams for the following patterns: Command, Singleton, Bridge. Explain how they are used in the Pop framework.

7. In trying to achieve hardware independent animations what were the roles of _maxdt and _mindt in the Pop framework?

8. Briefly explain how cCritter's two member function update() and move(dt) are used to solve the problem of making things appear to happen in parallel in the Pop framework.

9. Describe the algorithm from class for randomly generating dungeons.

10. Give the main cCritter methods called by cGame's step method (directly or indirectly) and give the order in which they are called.